package com.chmingx.JavaBasic.template;

public class People implements Comparable<People> {
    private String name;
    private int age;

    @Override
    public int compareTo(People other) {
        return this.name.compareTo(other.name);
    }

    public People(String name, int age) {
        this.name = name;
        this.age = age;
    }
}
